const moment = require('moment');
moment.locale('zh-cn');
module.exports = {
  beforeTimeFormat(datetime) {
    return moment(datetime).fromNow();
  }
};
